package com.example.myretrofit2.presenter;


import com.example.myretrofit2.Category;
import com.example.myretrofit2.httpMesholds.HttpMesholds;

import java.util.List;

import rx.Observable;
import rx.Subscriber;

public class CategoryPresenter extends HttpMesholds {
    public static void getCategory(Subscriber<List<Category>> s){
        Observable observable = cateService.getCategoryList().map(new ResultFunc1<List<Category>>());
        toSub(observable,s);
    }
}
